package org.brisling.innerMail.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import org.brisling.base.domain.impl.BaseDomain;
import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.common.ConstSysParam;

/**
 * 
 * <p>Title: MailDomain</p>
 * <p>Description: 邮件domain</p>
 * <p>Company: tongking</p>
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2017年5月1日 下午4:07:19
 */

@Entity
@Table(name=ConstSysParam.MODULE_MAIL_INFO)
public class MailInfoDomain extends BaseDomain implements BaseDomainInf{

	
	
	//回复邮件id()
	private Long reply_id;
	//邮件名称
	//private String name; //父类继承
	
	//邮件内容id
	private Long lobid;
	
	//邮件内容
	@Transient
	private String lob_contents;
	
	//发件人信息
	private Long sendids;
	
	private String sendName;
	
	//发件人科室
	private Long sendDeptid;
	
	private String sendDeptName;
	
	//收件人
	private Long reciveid;
	
	private String reciveName;
	
	//收件人科室
	private Long reciveDeptid;
	
	private String reciveDeptname;
	
	
	//所有收件人(用于发件记录)
	private String reciveUserids;
	
	private String reciveUserNames;
	
	//所有收件群组(用于发件记录)
	private String reciveGroupids;
	
	private String reciveGroupNames;	
	
	
	//邮件状态
	@Column(length=2)
	private String status;//null:草稿，1:未读，2:已读，3:收件，4:发送，5:回收站
	
	//读取状态
	@Column(length=2)
	private String isRead;//1：未读，2：已读
	
	//删除状态
	@Column(length=2)
	private String isDel;//t：已删除
	
	//收件箱数量
	@Transient
	private Long recived;
	
	//草稿箱数量
	@Transient
	private Long draft;
	
	//回收站数量
	@Transient
	private Long gabage;
	
	@Transient
	private String reWrite;

	

	public Long getLobid() {
		return lobid;
	}

	public void setLobid(Long lobid) {
		this.lobid = lobid;
	}

	

	public String getLob_contents() {
		return lob_contents;
	}

	public void setLob_contents(String lob_contents) {
		this.lob_contents = lob_contents;
	}

	public Long getReply_id() {
		return reply_id;
	}

	public void setReply_id(Long reply_id) {
		this.reply_id = reply_id;
	}

	

	public Long getSendids() {
		return sendids;
	}

	public void setSendids(Long sendids) {
		this.sendids = sendids;
	}

	public String getSendName() {
		return sendName;
	}

	public void setSendName(String sendName) {
		this.sendName = sendName;
	}

	public String getReciveUserids() {
		return reciveUserids;
	}

	public void setReciveUserids(String reciveUserids) {
		this.reciveUserids = reciveUserids;
	}

	public String getReciveUserNames() {
		return reciveUserNames;
	}

	public void setReciveUserNames(String reciveUserNames) {
		this.reciveUserNames = reciveUserNames;
	}

	public String getReciveGroupids() {
		return reciveGroupids;
	}

	public void setReciveGroupids(String reciveGroupids) {
		this.reciveGroupids = reciveGroupids;
	}

	public String getReciveGroupNames() {
		return reciveGroupNames;
	}

	public void setReciveGroupNames(String reciveGroupNames) {
		this.reciveGroupNames = reciveGroupNames;
	}

	public Long getRecived() {
		return recived;
	}

	public void setRecived(Long recived) {
		this.recived = recived;
	}

	public Long getDraft() {
		return draft;
	}

	public void setDraft(Long draft) {
		this.draft = draft;
	}

	public Long getGabage() {
		return gabage;
	}

	public void setGabage(Long gabage) {
		this.gabage = gabage;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Long getReciveid() {
		return reciveid;
	}

	public void setReciveid(Long reciveid) {
		this.reciveid = reciveid;
	}

	public String getReciveName() {
		return reciveName;
	}

	public void setReciveName(String reciveName) {
		this.reciveName = reciveName;
	}

	public Long getSendDeptid() {
		return sendDeptid;
	}

	public void setSendDeptid(Long sendDeptid) {
		this.sendDeptid = sendDeptid;
	}

	public String getSendDeptName() {
		return sendDeptName;
	}

	public void setSendDeptName(String sendDeptName) {
		this.sendDeptName = sendDeptName;
	}

	public Long getReciveDeptid() {
		return reciveDeptid;
	}

	public void setReciveDeptid(Long reciveDeptid) {
		this.reciveDeptid = reciveDeptid;
	}

	public String getReciveDeptname() {
		return reciveDeptname;
	}

	public void setReciveDeptname(String reciveDeptname) {
		this.reciveDeptname = reciveDeptname;
	}

	public String getIsRead() {
		return isRead;
	}

	public void setIsRead(String isRead) {
		this.isRead = isRead;
	}

	public String getReWrite() {
		return reWrite;
	}

	public void setReWrite(String reWrite) {
		this.reWrite = reWrite;
	}

	public String getIsDel() {
		return isDel;
	}

	public void setIsDel(String isDel) {
		this.isDel = isDel;
	}	
	
}
